﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using SERP.StringMappings;
using SERP.DAO;
using SERP.Controllers;
namespace SERP.Modules.BinaryData{
	public partial class BinaryDataInputFields : SERP.Modules.ModuleBase
	{
		protected void Page_Load(object sender, EventArgs e){
			LoadLanguage();
		}
		private BinaryDataEntity model=new BinaryDataEntity();
		public BinaryDataEntity Model{
			set{
				model=value;
			}
			get{
				return model;
			}
		}
		//Load All lable text
		private void LoadLanguage(){
			labelData.Text=BinaryDataStringMapping.Data+":";
			labelFileName.Text=BinaryDataStringMapping.FileName+":";
		}   
		public void UpdateToModel(){
			//Coder implement here
			//model.Data=CopyBinaryFromFile();
			//End					
			model.FileName=Convert.ToString(txtFileName.Text);
		}
		public void UpdateToScreen(){
			//Coder implement here
			//CopyBinaryToScreen(model.Data);
			//End
			txtFileName.Text=model.FileName;
		}
		public void ClearScreen(){
			txtFileName.Text="";
		}
		public bool ValidateScreen(){
			bool result=true;
			return result;
		}	
	}
}
